package com.blog.feign;

import com.blog.common.CommonRespDto;
import com.blog.common.RespBean;
import com.blog.feign.fallback.SecGoodsFeignClientFallBack;
import com.blog.seckill.goods.Good;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName SecGoodsFeignClient
 * @Destription 调用商品微服务
 * @Author 天堂小野花
 * @Date 2025/8/22  21:18
 * @Version 1.0
 */
@FeignClient(value = "service-sec-goods" ,fallback = SecGoodsFeignClientFallBack.class)
public interface SecGoodsFeignClient {

    @GetMapping("/good/selectAllGoods")
    public CommonRespDto selectAllGoods();
    @GetMapping("/good/base/selectGoodById/{rid}")
    public Good selectGoodById(@PathVariable Integer rid);
    @PutMapping("/good/goodInventoryNumById")
    public int goodInventoryNumById(@RequestParam("goodId") Integer goodId, @RequestParam("num") Integer num);


}
